@@ -1,5 +1,38 @@
Revision history for Dist-Zilla
+4.200006 2011-04-28 21:14:04 America/New_York
+
+ MakeMaker-generated Makefile.PL now only has configure_requires of
+ 6.30 so dists can be installed on RHEL5
+
+ improve consistency and options of *_TESTING env vars (Apocalypse)
+
+ improve FileFinder-related documentation (thanks, Apocalypse)
+
+ add a default file finder called :IncModules (thanks, Apocalypse)
+
+ add a default file finder called :MainModule (thanks, Mateu X.
+ Hunter)
+
+ phase for named Prereqs defaults to Runtime if omitted (Jonathan Yu)
+
+ extract the *Runner role implementations from ModuleBuild to
+ Role::BuildPL (Leon Timmermans)
+
+4.200005 2011-04-25 12:20:59 America/New_York
+
+ provide actual name of releaser(s) in ConfirmRelease
+
+ error message if "dzil run" is run without a command to run
+
+ some minor refactoring in listdeps (Jon Rockway)
+
+ listdeps can now skip already-met prereqs (Jesse Luehrs)
+
+ authordeps now skips plugins under inc:: (Jesse Luehrs)
+
+ authordeps now scans for "; authordep" comments
+
4.200004 2011-02-11 16:17:37 America/New_York
Add Tests for Config::MVP 2.200 changes. ( Kent Fredric )
@@ -17,6 +17,9 @@ corpus/dist/DZ2/dist.pl
corpus/dist/DZ2/lib/DZ1.pm
corpus/dist/DZT/lib/DZT/Sample.pm
corpus/dist/DZT/t/basic.t
+corpus/dist/DZT_Bin/test.pl
+corpus/dist/DZT_Inc/Foo.pm
+corpus/dist/DZT_Inc/Foo/Bar.pm
corpus/dist/DZT_NoPm/lib/DZT/Sample.pod
corpus/dist/DZT_NoPm/t/basic.t
corpus/extra/subdir/index.html
@@ -109,6 +112,7 @@ lib/Dist/Zilla/Role/BeforeArchive.pm
lib/Dist/Zilla/Role/BeforeBuild.pm
lib/Dist/Zilla/Role/BeforeMint.pm
lib/Dist/Zilla/Role/BeforeRelease.pm
+lib/Dist/Zilla/Role/BuildPL.pm
lib/Dist/Zilla/Role/BuildRunner.pm
lib/Dist/Zilla/Role/Chrome.pm
lib/Dist/Zilla/Role/ConfigDumper.pm
@@ -166,6 +170,7 @@ t/plugins/confirmrelease.t
t/plugins/distmeta.t
t/plugins/extratests.t
t/plugins/fakerelease.t
+t/plugins/filefinders.t
t/plugins/filter-b.t
t/plugins/gatherdir.t
t/plugins/generatefile.t
@@ -4,7 +4,7 @@
"Ricardo SIGNES <rjbs@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110390",
+ "generated_by" : "Dist::Zilla version 4.200006, CPAN::Meta::Converter version 2.110930",
"license" : [
"perl_5"
],
@@ -22,7 +22,7 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.31",
+ "ExtUtils::MakeMaker" : "6.30",
"File::ShareDir::Install" : "0.03"
}
},
@@ -123,7 +123,7 @@
},
"x_mailing_list" : "http://www.listbox.com/subscribe/?list_id=139292"
},
- "version" : "4.200004",
+ "version" : "4.200006",
"x_Dist_Zilla" : {
"plugins" : [
{
@@ -134,112 +134,112 @@
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@RJBS/@Basic/GatherDir",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Basic/PruneCruft",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Basic/ManifestSkip",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Basic/MetaYAML",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Basic/License",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Basic/Readme",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@RJBS/@Basic/ExtraTests",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Basic/ExecDir",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Basic/ShareDir",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Basic/MakeMaker",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Basic/Manifest",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Basic/TestRelease",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Basic/ConfirmRelease",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Basic/UploadToCPAN",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@RJBS/AutoPrereqs",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Git::NextVersion",
"name" : "@RJBS/Git::NextVersion",
- "version" : "1.110330"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@RJBS/Repository",
- "version" : "0.17"
+ "version" : "0.18"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -250,7 +250,7 @@
}
},
"name" : "@RJBS/TestMoreWithSubtests",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
@@ -260,37 +260,37 @@
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
- "version" : "1.110330"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
- "version" : "1.110330"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
- "version" : "1.110330"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
- "version" : "1.110330"
+ "version" : "1.110500"
},
{
"class" : "Dist::Zilla::Plugin::ModuleShareDirs",
"name" : "ModuleShareDirs",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MetaNoIndex",
"name" : "MetaNoIndex",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "MetaResources",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -301,7 +301,7 @@
}
},
"name" : "TestRequires",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -312,7 +312,7 @@
}
},
"name" : "RuntimeRecommends",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -323,7 +323,7 @@
}
},
"name" : "Prereqs",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::RemovePrereqs",
@@ -337,27 +337,37 @@
}
},
"name" : "RemovePrereqs",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.200004"
+ "version" : "4.200006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":IncModules",
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.200004"
+ "version" : "4.200006"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.200004"
+ "version" : "4.200006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":MainModule",
+ "version" : "4.200006"
}
],
"zilla" : {
@@ -365,7 +375,7 @@
"config" : {
"is_trial" : 0
},
- "version" : "4.200004"
+ "version" : "4.200006"
}
}
}
@@ -6,10 +6,10 @@ build_requires:
Test::Fatal: 0
Test::More: 0.96
configure_requires:
- ExtUtils::MakeMaker: 6.31
+ ExtUtils::MakeMaker: 6.30
File::ShareDir::Install: 0.03
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.200004, CPAN::Meta::Converter version 2.110390'
+generated_by: 'Dist::Zilla version 4.200006, CPAN::Meta::Converter version 2.110930'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -99,7 +99,7 @@ resources:
X_mailing_list: http://www.listbox.com/subscribe/?list_id=139292
homepage: http://dzil.org/
repository: http://github.com/rjbs/dist-zilla.git
-version: 4.200004
+version: 4.200006
x_Dist_Zilla:
plugins:
-
@@ -109,91 +109,91 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::GatherDir
name: '@RJBS/@Basic/GatherDir'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Basic/PruneCruft'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Basic/ManifestSkip'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Basic/MetaYAML'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Basic/License'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Basic/Readme'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@RJBS/@Basic/ExtraTests'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Basic/ExecDir'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Basic/ShareDir'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Basic/MakeMaker'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Basic/Manifest'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Basic/TestRelease'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Basic/ConfirmRelease'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Basic/UploadToCPAN'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@RJBS/AutoPrereqs'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Git::NextVersion
name: '@RJBS/Git::NextVersion'
- version: 1.110330
+ version: 1.110500
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Repository
name: '@RJBS/Repository'
- version: 0.17
+ version: 0.18
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -201,7 +201,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: '@RJBS/TestMoreWithSubtests'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
@@ -209,31 +209,31 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
- version: 1.110330
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
- version: 1.110330
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
- version: 1.110330
+ version: 1.110500
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
- version: 1.110330
+ version: 1.110500
-
class: Dist::Zilla::Plugin::ModuleShareDirs
name: ModuleShareDirs
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MetaNoIndex
name: MetaNoIndex
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::MetaResources
name: MetaResources
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -241,7 +241,7 @@ x_Dist_Zilla:
phase: test
type: requires
name: TestRequires
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -249,7 +249,7 @@ x_Dist_Zilla:
phase: runtime
type: recommends
name: RuntimeRecommends
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -257,7 +257,7 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: Prereqs
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::RemovePrereqs
config:
@@ -267,25 +267,33 @@ x_Dist_Zilla:
- Dist::Zilla::Tester::_Role
- Some::Package::That::Does::Not::Exist::Due::To::A::Typo
name: RemovePrereqs
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.200004
+ version: 4.200006
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':IncModules'
+ version: 4.200006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.200004
+ version: 4.200006
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.200004
+ version: 4.200006
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':MainModule'
+ version: 4.200006
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: 0
- version: 4.200004
+ version: 4.200006
@@ -4,7 +4,7 @@ use warnings;
BEGIN { require v5.8.5; }
-use ExtUtils::MakeMaker 6.31;
+use ExtUtils::MakeMaker 6.30;
use File::ShareDir::Install;
install_share module => "Dist::Zilla::MintingProfile::Default", "profiles";
@@ -18,7 +18,7 @@ my %WriteMakefileArgs = (
'Test::More' => '0.96'
},
'CONFIGURE_REQUIRES' => {
- 'ExtUtils::MakeMaker' => '6.31',
+ 'ExtUtils::MakeMaker' => '6.30',
'File::ShareDir::Install' => '0.03'
},
'DISTNAME' => 'Dist-Zilla',
@@ -101,7 +101,7 @@ my %WriteMakefileArgs = (
'parent' => '0',
'version' => '0'
},
- 'VERSION' => '4.200004',
+ 'VERSION' => '4.200006',
'test' => {
'TESTS' => 't/*.t t/diagnostics/*.t t/plugins/*.t'
}
@@ -1,7 +1,7 @@
This archive contains the distribution Dist-Zilla,
-version 4.200004:
+version 4.200006:
distribution builder; installer not included!
@@ -16,7 +16,7 @@ dzil - do stuff with your dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -0,0 +1,3 @@
+#!/usr/bin/perl
+print "Hello World!\n";
+exit;
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+package Foo::Bar;
+
+sub baz {
+ 'bar';
+}
+
+1;
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+package Foo;
+
+sub baz {
+ 'baz';
+}
+
+1;
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::authordeps;
BEGIN {
- $Dist::Zilla::App::Command::authordeps::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::authordeps::VERSION = '4.200006';
}
use Dist::Zilla::App -command;
# ABSTRACT: List your distribution's author dependencies
@@ -15,6 +15,7 @@ use Config::INI::Reader;
use namespace::autoclean;
+
sub abstract { "list your distribution's author dependencies" }
sub opt_spec {
@@ -55,13 +56,25 @@ sub extract_author_deps {
my $fh = $ini->openr;
my $config = Config::INI::Reader->read_handle($fh);
- my @sections = uniq map { s/\s.*//; $_ }
- grep { $_ ne '_' }
- keys %{$config};
+ my @packages =
+ uniq
+ map {; Dist::Zilla::Util->expand_config_package_name($_) }
+ map { s/\s.*//; $_ }
+ grep { $_ ne '_' }
+ keys %{$config};
+
+ seek $fh, 0, 0;
+
+ while (<$fh>) {
+ chomp;
+ next unless /\A\s*;\s*authordep\s*(\S+)\s*\z/;
+ push @packages, $1;
+ }
return
+ grep { !/^inc::/ }
grep { $missing ? (! eval "require $_; 1;") : 1 }
- map {; Dist::Zilla::Util->expand_config_package_name($_) } @sections;
+ @packages;
}
1;
@@ -75,7 +88,18 @@ Dist::Zilla::App::Command::authordeps - List your distribution's author dependen
=head1 VERSION
-version 4.200004
+version 4.200006
+
+=head1 SYNOPSIS
+
+ $ dzil authordeps
+
+This will scan the F<dist.ini> file and print a list of plugin modules that
+probably need to be installed for the dist to be buildable. This is a very
+naive scan, but tends to be pretty accurate. Modules can be added to its
+results by using special comments in the form:
+
+ ; authordep Some::Package
=head1 AUTHOR
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::build;
BEGIN {
- $Dist::Zilla::App::Command::build::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::build::VERSION = '4.200006';
}
# ABSTRACT: build your dist
use Dist::Zilla::App -command;
@@ -42,7 +42,7 @@ Dist::Zilla::App::Command::build - build your dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::clean;
BEGIN {
- $Dist::Zilla::App::Command::clean::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::clean::VERSION = '4.200006';
}
# ABSTRACT: clean up after build, test, or install
use Dist::Zilla::App -command;
@@ -29,7 +29,7 @@ Dist::Zilla::App::Command::clean - clean up after build, test, or install
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::install;
BEGIN {
- $Dist::Zilla::App::Command::install::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::install::VERSION = '4.200006';
}
# ABSTRACT: install your dist
use Dist::Zilla::App -command;
@@ -36,7 +36,7 @@ Dist::Zilla::App::Command::install - install your dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,19 +2,47 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::listdeps;
BEGIN {
- $Dist::Zilla::App::Command::listdeps::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::listdeps::VERSION = '4.200006';
}
use Dist::Zilla::App -command;
# ABSTRACT: print your distribution's prerequisites
use Moose::Autobox;
+use Try::Tiny;
use Version::Requirements;
sub abstract { "print your distribution's prerequisites" }
sub opt_spec {
- [ 'author', 'include author dependencies' ],
+ [ 'author', 'include author dependencies' ],
+ [ 'missing', 'list only the missing dependencies' ],
+}
+
+sub extract_dependencies {
+ my ($self, $zilla, $phases, $missing) = @_;
+
+ $_->before_build for $zilla->plugins_with(-BeforeBuild)->flatten;
+ $_->gather_files for $zilla->plugins_with(-FileGatherer)->flatten;
+ $_->prune_files for $zilla->plugins_with(-FilePruner)->flatten;
+ $_->munge_files for $zilla->plugins_with(-FileMunger)->flatten;
+ $_->register_prereqs for $zilla->plugins_with(-PrereqSource)->flatten;
+
+ my $req = Version::Requirements->new;
+ my $prereqs = $zilla->prereqs;
+
+ for my $phase (@$phases) {
+ $req->add_requirements( $prereqs->requirements_for($phase, 'requires') );
+ }
+
+ my @required = grep { $_ ne 'perl' } $req->required_modules;
+ if ($missing) {
+ @required = grep { !( try { Class::MOP::load_class($_); 1 }
+ && $req->accepts_module($_ => $_->VERSION) ) }
+ @required;
+ }
+
+ return sort { lc $a cmp lc $b } @required;
}
sub execute {
@@ -22,25 +50,11 @@ sub execute {
$self->app->chrome->logger->mute;
- $_->before_build for $self->zilla->plugins_with(-BeforeBuild)->flatten;
- $_->gather_files for $self->zilla->plugins_with(-FileGatherer)->flatten;
- $_->prune_files for $self->zilla->plugins_with(-FilePruner)->flatten;
- $_->munge_files for $self->zilla->plugins_with(-FileMunger)->flatten;
- $_->register_prereqs for $self->zilla->plugins_with(-PrereqSource)->flatten;
-
- my $req = Version::Requirements->new;
- my $prereqs = $self->zilla->prereqs;
-
my @phases = qw(build test configure runtime);
push @phases, 'develop' if $opt->author;
- for my $phase (@phases) {
- $req->add_requirements( $prereqs->requirements_for($phase, 'requires') );
- }
-
- print "$_\n" for sort { lc $a cmp lc $b }
- grep { $_ ne 'perl' }
- $req->required_modules;
+ print "$_\n"
+ for $self->extract_dependencies($self->zilla, \@phases, $opt->missing);
}
1;
@@ -54,7 +68,7 @@ Dist::Zilla::App::Command::listdeps - print your distribution's prerequisites
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -66,7 +80,8 @@ This is a command plugin for L<Dist::Zilla>. It provides the C<listdeps>
command, which prints your distribution's prerequisites. You could pipe that
list to a CPAN client like L<cpan> to install all of the dependecies in one
quick go. This will include author dependencies (those listed under
-C<develop_requires>) if the C<--author> flag is passed.
+C<develop_requires>) if the C<--author> flag is passed. You can also pass the
+C<--missing> flag to list only dependencies which are unsatisfied.
=head1 ACKNOWLEDGEMENTS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::new;
BEGIN {
- $Dist::Zilla::App::Command::new::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::new::VERSION = '4.200006';
}
# ABSTRACT: mint a new dist
use Dist::Zilla::App -command;
@@ -72,7 +72,7 @@ Dist::Zilla::App::Command::new - mint a new dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::nop;
BEGIN {
- $Dist::Zilla::App::Command::nop::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::nop::VERSION = '4.200006';
}
# ABSTRACT: initialize dzil, then exit
use Dist::Zilla::App -command;
@@ -27,7 +27,7 @@ Dist::Zilla::App::Command::nop - initialize dzil, then exit
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::release;
BEGIN {
- $Dist::Zilla::App::Command::release::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::release::VERSION = '4.200006';
}
# ABSTRACT: release your dist to the CPAN
use Dist::Zilla::App -command;
@@ -35,7 +35,7 @@ Dist::Zilla::App::Command::release - release your dist to the CPAN
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::run;
BEGIN {
- $Dist::Zilla::App::Command::run::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::run::VERSION = '4.200006';
}
# ABSTRACT: run stuff in a dir where your dist is built
@@ -12,9 +12,15 @@ use Moose::Autobox;
sub abstract { 'run stuff in a dir where your dist is built' }
+sub usage_desc {
+ return '%c %o run command [ arg1 arg2 ... ]';
+}
+
sub execute {
my ($self, $opts, $args) = @_;
+ $self->usage_error("no command to run supplied!") unless @$args;
+
$self->zilla->run_in_build($args);
}
@@ -29,7 +35,7 @@ Dist::Zilla::App::Command::run - run stuff in a dir where your dist is built
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::setup;
BEGIN {
- $Dist::Zilla::App::Command::setup::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::setup::VERSION = '4.200006';
}
# ABSTRACT: set up a basic global config file
use Dist::Zilla::App -command;
@@ -139,7 +139,7 @@ Dist::Zilla::App::Command::setup - set up a basic global config file
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -2,22 +2,29 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::smoke;
BEGIN {
- $Dist::Zilla::App::Command::smoke::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::smoke::VERSION = '4.200006';
}
# ABSTRACT: smoke your dist
use Dist::Zilla::App -command;
-require Dist::Zilla::App::Command::test;
+
+
+sub opt_spec {
+ [ 'release' => 'enables the RELEASE_TESTING env variable', { default => 0 } ],
+ [ 'automated!' => 'enables the AUTOMATED_TESTING env variable (default behavior)', { default => 1 } ],
+ [ 'author' => 'enables the AUTHOR_TESTING env variable', { default => 0 } ]
+}
sub abstract { 'smoke your dist' }
sub execute {
- my $self = shift;
+ my ($self, $opt, $arg) = @_;
- local $ENV{AUTOMATED_TESTING} = 1;
- local @ARGV = qw(test);
+ local $ENV{RELEASE_TESTING} = 1 if $opt->release;
+ local $ENV{AUTHOR_TESTING} = 1 if $opt->author;
+ local $ENV{AUTOMATED_TESTING} = 1 if $opt->automated;
- return $self->app->run;
+ $self->zilla->test;
}
1;
@@ -31,19 +38,44 @@ Dist::Zilla::App::Command::smoke - smoke your dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
-This command builds and tests distribution in "smoke testing mode."
+ dzil smoke [ --release ] [ --author ] [ --no-automated ]
+
+=head1 DESCRIPTION
+
+This command builds and tests the distribution in "smoke testing mode."
+
+This command is a thin wrapper around the L<test|Dist::Zilla::Dist::Builder/test> method in
+Dist::Zilla. It builds your dist and runs the tests with the AUTOMATED_TESTING
+environment variable turned on, so it's like doing this:
+
+ export AUTOMATED_TESTING=1
+ dzil build --no-tgz
+ cd $BUILD_DIRECTORY
+ perl Makefile.PL
+ make
+ make test
+
+A build that fails tests will be left behind for analysis, and F<dzil> will
+exit a non-zero value. If the tests are successful, the build directory will
+be removed and F<dzil> will exit with status 0.
+
+=head1 OPTIONS
+
+=head2 --release
+
+This will run the testsuite with RELEASE_TESTING=1
- dzil smoke
+=head2 --no-automated
-Otherwise identical to
+This will run the testsuite without setting AUTOMATED_TESTING
- AUTOMATED_TESTING=1 dzil test
+=head2 --author
-See L<Dist::Zilla::App::Command::test> for more.
+This will run the testsuite with AUTHOR_TESTING=1
=head1 AUTHOR
@@ -2,12 +2,17 @@ use strict;
use warnings;
package Dist::Zilla::App::Command::test;
BEGIN {
- $Dist::Zilla::App::Command::test::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::test::VERSION = '4.200006';
}
# ABSTRACT: test your dist
use Dist::Zilla::App -command;
-use Moose::Autobox;
+
+sub opt_spec {
+ [ 'release' => 'enables the RELEASE_TESTING env variable', { default => 0 } ],
+ [ 'automated' => 'enables the AUTOMATED_TESTING env variable', { default => 0 } ],
+ [ 'author!' => 'enables the AUTHOR_TESTING env variable (default behavior)', { default => 1 } ]
+}
sub abstract { 'test your dist' }
@@ -15,6 +20,10 @@ sub abstract { 'test your dist' }
sub execute {
my ($self, $opt, $arg) = @_;
+ local $ENV{RELEASE_TESTING} = 1 if $opt->release;
+ local $ENV{AUTHOR_TESTING} = 1 if $opt->author;
+ local $ENV{AUTOMATED_TESTING} = 1 if $opt->automated;
+
$self->zilla->test;
}
@@ -29,18 +38,19 @@ Dist::Zilla::App::Command::test - test your dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
- dzil test
+ dzil test [ --release ] [ --no-author ] [ --automated ]
-This command is a thin wrapper around the C<L<test|Dist::Zilla/test>> method in
-Dist::Zilla. It builds your dist and runs the tests with AUTHOR_TESTING and
-RELEASE_TESTING environment variables turned on, so it's like doing this:
+=head1 DESCRIPTION
+
+This command is a thin wrapper around the L<test|Dist::Zilla::Dist::Builder/test> method in
+Dist::Zilla. It builds your dist and runs the tests with the AUTHOR_TESTING
+environment variable turned on, so it's like doing this:
export AUTHOR_TESTING=1
- export RELEASE_TESTING=1
dzil build --no-tgz
cd $BUILD_DIRECTORY
perl Makefile.PL
@@ -51,10 +61,19 @@ A build that fails tests will be left behind for analysis, and F<dzil> will
exit a non-zero value. If the tests are successful, the build directory will
be removed and F<dzil> will exit with status 0.
-=head1 SEE ALSO
+=head1 OPTIONS
+
+=head2 --release
+
+This will run the testsuite with RELEASE_TESTING=1
+
+=head2 --automated
+
+This will run the testsuite with AUTOMATED_TESTING=1
+
+=head2 --no-author
-The heavy lifting of this module is now done by
-L<Dist::Zilla::Role::TestRunner> plugins.
+This will run the testsuite without setting AUTHOR_TESTING
=head1 AUTHOR
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App::Command;
BEGIN {
- $Dist::Zilla::App::Command::VERSION = '4.200004';
+ $Dist::Zilla::App::Command::VERSION = '4.200006';
}
# ABSTRACT: base class for dzil commands
use App::Cmd::Setup -command;
@@ -29,7 +29,7 @@ Dist::Zilla::App::Command - base class for dzil commands
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 METHODS
@@ -1,6 +1,6 @@
package Dist::Zilla::App::Tester;
BEGIN {
- $Dist::Zilla::App::Tester::VERSION = '4.200004';
+ $Dist::Zilla::App::Tester::VERSION = '4.200006';
}
use base 'App::Cmd::Tester';
use App::Cmd::Tester 0.306 (); # result_class, ->app
@@ -45,7 +45,7 @@ sub test_dzil {
{
package Dist::Zilla::App::Tester::Result;
BEGIN {
- $Dist::Zilla::App::Tester::Result::VERSION = '4.200004';
+ $Dist::Zilla::App::Tester::Result::VERSION = '4.200006';
}
BEGIN { our @ISA = qw(App::Cmd::Tester::Result); }
@@ -92,7 +92,7 @@ Dist::Zilla::App::Tester - testing library for Dist::Zilla::App
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::App;
BEGIN {
- $Dist::Zilla::App::VERSION = '4.200004';
+ $Dist::Zilla::App::VERSION = '4.200006';
}
# ABSTRACT: Dist::Zilla's App::Cmd
use App::Cmd::Setup 0.309 -app; # better compilation error detection
@@ -140,7 +140,7 @@ Dist::Zilla::App - Dist::Zilla's App::Cmd
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 METHODS
@@ -1,6 +1,6 @@
package Dist::Zilla::Chrome::Term;
BEGIN {
- $Dist::Zilla::Chrome::Term::VERSION = '4.200004';
+ $Dist::Zilla::Chrome::Term::VERSION = '4.200006';
}
use Moose;
# ABSTRACT: chrome used for terminal-based interaction
@@ -93,7 +93,7 @@ Dist::Zilla::Chrome::Term - chrome used for terminal-based interaction
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::Chrome::Test;
BEGIN {
- $Dist::Zilla::Chrome::Test::VERSION = '4.200004';
+ $Dist::Zilla::Chrome::Test::VERSION = '4.200006';
}
use Moose;
# ABSTRACT: the chrome used by Dist::Zilla::Tester
@@ -67,7 +67,7 @@ Dist::Zilla::Chrome::Test - the chrome used by Dist::Zilla::Tester
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 ATTRIBUTES
@@ -1,6 +1,6 @@
package Dist::Zilla::Dist::Builder;
BEGIN {
- $Dist::Zilla::Dist::Builder::VERSION = '4.200004';
+ $Dist::Zilla::Dist::Builder::VERSION = '4.200006';
}
# ABSTRACT: dist zilla subclass for building dists
use Moose 0.92; # role composition fixes
@@ -58,6 +58,23 @@ sub _setup_default_plugins {
$self->plugins->push($plugin);
}
+ unless ($self->plugin_named(':IncModules')) {
+ require Dist::Zilla::Plugin::FinderCode;
+ my $plugin = Dist::Zilla::Plugin::FinderCode->new({
+ plugin_name => ':IncModules',
+ zilla => $self,
+ style => 'grep',
+ code => sub {
+ my ($file, $self) = @_;
+ local $_ = $file->name;
+ return 1 if m{\Ainc/} and m{\.pm$};
+ return;
+ },
+ });
+
+ $self->plugins->push($plugin);
+ }
+
unless ($self->plugin_named(':TestFiles')) {
require Dist::Zilla::Plugin::FinderCode;
my $plugin = Dist::Zilla::Plugin::FinderCode->new({
@@ -114,6 +131,23 @@ sub _setup_default_plugins {
$self->plugins->push($plugin);
}
+
+ unless ($self->plugin_named(':MainModule')) {
+ require Dist::Zilla::Plugin::FinderCode;
+ my $plugin = Dist::Zilla::Plugin::FinderCode->new({
+ plugin_name => ':MainModule',
+ zilla => $self,
+ style => 'grep',
+ code => sub {
+ my ($file, $self) = @_;
+ local $_ = $file->name;
+ return 1 if $_ eq $self->zilla->main_module->name;
+ return;
+ },
+ });
+
+ $self->plugins->push($plugin);
+ }
}
has _share_dir_map => (
@@ -283,12 +317,19 @@ sub ensure_built_in {
sub build_archive {
- my ($self, $file) = @_;
+ my ($self) = @_;
my $built_in = $self->ensure_built;
my $archive = Archive::Tar->new;
+ my $basename = file(join(q{},
+ $self->name,
+ '-',
+ $self->version,
+ ($self->is_trial ? '-TRIAL' : ''),
+ ));
+
$_->before_archive for $self->plugins_with(-BeforeArchive)->flatten;
my %seen_dir;
@@ -298,21 +339,14 @@ sub build_archive {
$archive->add_files( $built_in->file( $distfile->name ) );
}
- ## no critic
- $file ||= file(join(q{},
- $self->name,
- '-',
- $self->version,
- ($self->is_trial ? '-TRIAL' : ''),
- '.tar.gz',
- ));
-
# Fix up the CHMOD on the archived files, to inhibit 'withoutworldwritables'
# behaviour on win32.
for my $f ( $archive->get_files ) {
$f->mode( $f->mode & ~022 );
}
+ my $file = file("$basename.tar.gz");
+
$self->log("writing archive to $file");
$archive->write("$file", 9);
@@ -418,9 +452,6 @@ sub test {
my $target = dir( File::Temp::tempdir(DIR => $build_root) );
$self->log("building test distribution under $target");
- local $ENV{AUTHOR_TESTING} = 1;
- local $ENV{RELEASE_TESTING} = 1;
-
$self->ensure_built_in($target);
my $error = $self->run_tests_in($target);
@@ -500,7 +531,7 @@ Dist::Zilla::Dist::Builder - dist zilla subclass for building dists
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 ATTRIBUTES
@@ -1,6 +1,6 @@
package Dist::Zilla::Dist::Minter;
BEGIN {
- $Dist::Zilla::Dist::Minter::VERSION = '4.200004';
+ $Dist::Zilla::Dist::Minter::VERSION = '4.200006';
}
# ABSTRACT: distribution builder; installer not included!
use Moose 0.92; # role composition fixes
@@ -146,7 +146,7 @@ Dist::Zilla::Dist::Minter - distribution builder; installer not included!
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::File::FromCode;
BEGIN {
- $Dist::Zilla::File::FromCode::VERSION = '4.200004';
+ $Dist::Zilla::File::FromCode::VERSION = '4.200006';
}
# ABSTRACT: a file whose content is (re-)built on demand
use Moose;
@@ -35,7 +35,7 @@ Dist::Zilla::File::FromCode - a file whose content is (re-)built on demand
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::File::InMemory;
BEGIN {
- $Dist::Zilla::File::InMemory::VERSION = '4.200004';
+ $Dist::Zilla::File::InMemory::VERSION = '4.200006';
}
# ABSTRACT: a file that you build entirely in memory
use Moose;
@@ -26,7 +26,7 @@ Dist::Zilla::File::InMemory - a file that you build entirely in memory
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::File::OnDisk;
BEGIN {
- $Dist::Zilla::File::OnDisk::VERSION = '4.200004';
+ $Dist::Zilla::File::OnDisk::VERSION = '4.200006';
}
# ABSTRACT: a file that comes from your filesystem
use Moose;
@@ -53,7 +53,7 @@ Dist::Zilla::File::OnDisk - a file that comes from your filesystem
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Assembler::GlobalConfig;
BEGIN {
- $Dist::Zilla::MVP::Assembler::GlobalConfig::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Assembler::GlobalConfig::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::MVP::Assembler';
@@ -37,7 +37,7 @@ Dist::Zilla::MVP::Assembler::GlobalConfig - Dist::Zilla::MVP::Assembler for glob
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Assembler::Zilla;
BEGIN {
- $Dist::Zilla::MVP::Assembler::Zilla::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Assembler::Zilla::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::MVP::Assembler';
@@ -51,7 +51,7 @@ Dist::Zilla::MVP::Assembler::Zilla - Dist::Zilla::MVP::Assembler for the Dist::Z
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Assembler;
BEGIN {
- $Dist::Zilla::MVP::Assembler::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Assembler::VERSION = '4.200006';
}
use Moose;
extends 'Config::MVP::Assembler';
@@ -60,7 +60,7 @@ Dist::Zilla::MVP::Assembler - Dist::Zilla-specific subclass of Config::MVP::Asse
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Reader::Finder;
BEGIN {
- $Dist::Zilla::MVP::Reader::Finder::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Reader::Finder::VERSION = '4.200006';
}
use Moose;
use Config::MVP::Reader 2.101540; # if_none
@@ -26,7 +26,7 @@ Dist::Zilla::MVP::Reader::Finder - the reader for dist.ini files
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Reader::Perl;
BEGIN {
- $Dist::Zilla::MVP::Reader::Perl::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Reader::Perl::VERSION = '4.200006';
}
use Moose;
extends 'Config::MVP::Reader';
@@ -56,7 +56,7 @@ Dist::Zilla::MVP::Reader::Perl - the reader for dist.pl files
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::RootSection;
BEGIN {
- $Dist::Zilla::MVP::RootSection::VERSION = '4.200004';
+ $Dist::Zilla::MVP::RootSection::VERSION = '4.200006';
}
use Moose;
extends 'Config::MVP::Section';
@@ -46,7 +46,7 @@ Dist::Zilla::MVP::RootSection - a standard section in Dist::Zilla's configuratio
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::MVP::Section;
BEGIN {
- $Dist::Zilla::MVP::Section::VERSION = '4.200004';
+ $Dist::Zilla::MVP::Section::VERSION = '4.200006';
}
use Moose;
extends 'Config::MVP::Section';
@@ -59,7 +59,7 @@ Dist::Zilla::MVP::Section - a standard section in Dist::Zilla's configuration se
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::MintingProfile::Default;
BEGIN {
- $Dist::Zilla::MintingProfile::Default::VERSION = '4.200004';
+ $Dist::Zilla::MintingProfile::Default::VERSION = '4.200006';
}
# ABSTRACT: Default minting profile provider
use Moose;
@@ -36,7 +36,7 @@ Dist::Zilla::MintingProfile::Default - Default minting profile provider
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::AutoPrereq;
BEGIN {
- $Dist::Zilla::Plugin::AutoPrereq::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::AutoPrereq::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::Plugin::AutoPrereqs';
@@ -26,7 +26,7 @@ Dist::Zilla::Plugin::AutoPrereq - (DEPRECATED) the old name for Dist::Zilla::Plu
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::AutoPrereqs;
BEGIN {
- $Dist::Zilla::Plugin::AutoPrereqs::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::AutoPrereqs::VERSION = '4.200006';
}
use Moose;
with(
@@ -106,7 +106,7 @@ Dist::Zilla::Plugin::AutoPrereqs - automatically extract prereqs from your modul
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::AutoVersion;
BEGIN {
- $Dist::Zilla::Plugin::AutoVersion::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::AutoVersion::VERSION = '4.200006';
}
# ABSTRACT: take care of numbering versions so you don't have to
use Moose;
@@ -68,7 +68,7 @@ Dist::Zilla::Plugin::AutoVersion - take care of numbering versions so you don't
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::BumpVersion;
BEGIN {
- $Dist::Zilla::Plugin::BumpVersion::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::BumpVersion::VERSION = '4.200006';
}
# ABSTRACT: (DEPRECATED) bump the version number by one before building
use Moose;
@@ -48,7 +48,7 @@ Dist::Zilla::Plugin::BumpVersion - (DEPRECATED) bump the version number by one b
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ConfirmRelease;
BEGIN {
- $Dist::Zilla::Plugin::ConfirmRelease::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ConfirmRelease::VERSION = '4.200006';
}
# ABSTRACT: prompt for confirmation before releasing
@@ -9,10 +9,16 @@ use ExtUtils::MakeMaker ();
use Moose;
with 'Dist::Zilla::Role::BeforeRelease';
+use Moose::Autobox;
+
sub before_release {
my ($self, $tgz) = @_;
- my $prompt = "*** Preparing to upload $tgz to CPAN ***\n"
+ my $releasers = join q{, },
+ map {; $_->plugin_name }
+ $self->zilla->plugins_with(-Releaser)->flatten;
+
+ my $prompt = "*** Preparing to release $tgz with $releasers ***\n"
. "Do you want to continue the release process?";
my $default = exists $ENV{DZIL_CONFIRMRELEASE_DEFAULT}
@@ -41,7 +47,7 @@ Dist::Zilla::Plugin::ConfirmRelease - prompt for confirmation before releasing
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::DistINI;
BEGIN {
- $Dist::Zilla::Plugin::DistINI::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::DistINI::VERSION = '4.200006';
}
# ABSTRACT: a plugin to add a dist.ini to newly-minted dists
use Moose;
@@ -81,7 +81,7 @@ Dist::Zilla::Plugin::DistINI - a plugin to add a dist.ini to newly-minted dists
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ExecDir;
BEGIN {
- $Dist::Zilla::Plugin::ExecDir::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ExecDir::VERSION = '4.200006';
}
# ABSTRACT: install a directory's contents as executables
use Moose;
@@ -35,7 +35,7 @@ Dist::Zilla::Plugin::ExecDir - install a directory's contents as executables
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ExtraTests;
BEGIN {
- $Dist::Zilla::Plugin::ExtraTests::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ExtraTests::VERSION = '4.200006';
}
# ABSTRACT: rewrite ./xt tests to ./t tests with skips
use Moose;
@@ -67,7 +67,7 @@ Dist::Zilla::Plugin::ExtraTests - rewrite ./xt tests to ./t tests with skips
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::FakeRelease;
BEGIN {
- $Dist::Zilla::Plugin::FakeRelease::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::FakeRelease::VERSION = '4.200006';
}
# ABSTRACT: fake plugin to test release
@@ -41,7 +41,7 @@ Dist::Zilla::Plugin::FakeRelease - fake plugin to test release
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::FinderCode;
BEGIN {
- $Dist::Zilla::Plugin::FinderCode::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::FinderCode::VERSION = '4.200006';
}
use Moose;
with 'Dist::Zilla::Role::FileFinder';
@@ -55,7 +55,7 @@ Dist::Zilla::Plugin::FinderCode - a callback-based FileFinder plugin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::GatherDir::Template;
BEGIN {
- $Dist::Zilla::Plugin::GatherDir::Template::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::GatherDir::Template::VERSION = '4.200006';
}
# ABSTRACT: gather all the files in a directory and use them as templates
use Moose;
@@ -51,7 +51,7 @@ Dist::Zilla::Plugin::GatherDir::Template - gather all the files in a directory a
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::GatherDir;
BEGIN {
- $Dist::Zilla::Plugin::GatherDir::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::GatherDir::VERSION = '4.200006';
}
# ABSTRACT: gather all the files in a directory
use Moose;
@@ -92,7 +92,7 @@ Dist::Zilla::Plugin::GatherDir - gather all the files in a directory
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,12 +1,11 @@
package Dist::Zilla::Plugin::GenerateFile;
BEGIN {
- $Dist::Zilla::Plugin::GenerateFile::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::GenerateFile::VERSION = '4.200006';
}
# ABSTRACT: build a custom file from only the plugin configuration
use Moose;
use Moose::Autobox;
-with 'Dist::Zilla::Role::FileGatherer';
-with 'Dist::Zilla::Role::TextTemplate';
+with qw/Dist::Zilla::Role::FileGatherer Dist::Zilla::Role::TextTemplate/;
use Dist::Zilla::File::InMemory;
@@ -71,7 +70,7 @@ Dist::Zilla::Plugin::GenerateFile - build a custom file from only the plugin con
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::InlineFiles;
BEGIN {
- $Dist::Zilla::Plugin::InlineFiles::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::InlineFiles::VERSION = '4.200006';
}
# ABSTRACT: files in a data section
use Moose;
@@ -42,7 +42,7 @@ Dist::Zilla::Plugin::InlineFiles - files in a data section
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::License;
BEGIN {
- $Dist::Zilla::Plugin::License::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::License::VERSION = '4.200006';
}
# ABSTRACT: output a LICENSE file
use Moose;
@@ -34,7 +34,7 @@ Dist::Zilla::Plugin::License - output a LICENSE file
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,12 +1,11 @@
package Dist::Zilla::Plugin::MakeMaker::Runner;
BEGIN {
- $Dist::Zilla::Plugin::MakeMaker::Runner::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MakeMaker::Runner::VERSION = '4.200006';
}
# ABSTRACT: Test and build dists with a Makefile.PL
use Moose;
-with 'Dist::Zilla::Role::BuildRunner';
-with 'Dist::Zilla::Role::TestRunner';
+with qw/Dist::Zilla::Role::BuildRunner Dist::Zilla::Role::TestRunner/;
use Config;
@@ -49,7 +48,7 @@ Dist::Zilla::Plugin::MakeMaker::Runner - Test and build dists with a Makefile.PL
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,14 +1,11 @@
package Dist::Zilla::Plugin::MakeMaker;
BEGIN {
- $Dist::Zilla::Plugin::MakeMaker::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MakeMaker::VERSION = '4.200006';
}
# ABSTRACT: build a Makefile.PL that uses ExtUtils::MakeMaker
use Moose;
use Moose::Autobox;
-with 'Dist::Zilla::Role::PrereqSource';
-with 'Dist::Zilla::Role::InstallTool';
-with 'Dist::Zilla::Role::TextTemplate';
use Config;
@@ -33,8 +30,7 @@ has '_runner' => (
},
);
-with 'Dist::Zilla::Role::BuildRunner';
-with 'Dist::Zilla::Role::TestRunner';
+with qw/Dist::Zilla::Role::PrereqSource Dist::Zilla::Role::InstallTool Dist::Zilla::Role::TextTemplate Dist::Zilla::Role::BuildRunner Dist::Zilla::Role::TestRunner/;
use Data::Dumper ();
use List::MoreUtils qw(any uniq);
@@ -208,7 +204,7 @@ has __write_makefile_args => (
has 'eumm_version' => (
isa => 'Str',
is => 'rw',
- default => '6.31',
+ default => '6.30',
);
__PACKAGE__->meta->make_immutable;
@@ -224,7 +220,7 @@ Dist::Zilla::Plugin::MakeMaker - build a Makefile.PL that uses ExtUtils::MakeMak
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::Manifest;
BEGIN {
- $Dist::Zilla::Plugin::Manifest::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::Manifest::VERSION = '4.200006';
}
# ABSTRACT: build a MANIFEST file
use Moose;
@@ -48,7 +48,7 @@ Dist::Zilla::Plugin::Manifest - build a MANIFEST file
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ManifestSkip;
BEGIN {
- $Dist::Zilla::Plugin::ManifestSkip::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ManifestSkip::VERSION = '4.200006';
}
# ABSTRACT: decline to build files that appear in a MANIFEST.SKIP-like file
use Moose;
@@ -43,7 +43,7 @@ Dist::Zilla::Plugin::ManifestSkip - decline to build files that appear in a MANI
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaConfig;
BEGIN {
- $Dist::Zilla::Plugin::MetaConfig::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaConfig::VERSION = '4.200006';
}
# ABSTRACT: summarize Dist::Zilla configuration into distmeta
use Moose;
@@ -49,7 +49,7 @@ Dist::Zilla::Plugin::MetaConfig - summarize Dist::Zilla configuration into distm
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaJSON;
BEGIN {
- $Dist::Zilla::Plugin::MetaJSON::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaJSON::VERSION = '4.200006';
}
# ABSTRACT: produce a META.json
use Moose;
@@ -70,7 +70,7 @@ Dist::Zilla::Plugin::MetaJSON - produce a META.json
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaNoIndex;
BEGIN {
- $Dist::Zilla::Plugin::MetaNoIndex::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaNoIndex::VERSION = '4.200006';
}
# ABSTRACT: Stop CPAN from indexing stuff
@@ -63,7 +63,7 @@ Dist::Zilla::Plugin::MetaNoIndex - Stop CPAN from indexing stuff
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaResources;
BEGIN {
- $Dist::Zilla::Plugin::MetaResources::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaResources::VERSION = '4.200006';
}
# ABSTRACT: provide arbitrary "resources" for distribution metadata
@@ -64,7 +64,7 @@ Dist::Zilla::Plugin::MetaResources - provide arbitrary "resources" for distribut
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaTests;
BEGIN {
- $Dist::Zilla::Plugin::MetaTests::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaTests::VERSION = '4.200006';
}
# ABSTRACT: common extra tests for META.yml
use Moose;
@@ -21,7 +21,7 @@ Dist::Zilla::Plugin::MetaTests - common extra tests for META.yml
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::MetaYAML;
BEGIN {
- $Dist::Zilla::Plugin::MetaYAML::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::MetaYAML::VERSION = '4.200006';
}
# ABSTRACT: produce a META.yml
use Moose;
@@ -70,7 +70,7 @@ Dist::Zilla::Plugin::MetaYAML - produce a META.yml
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,16 +1,16 @@
package Dist::Zilla::Plugin::ModuleBuild;
BEGIN {
- $Dist::Zilla::Plugin::ModuleBuild::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ModuleBuild::VERSION = '4.200006';
}
# ABSTRACT: build a Build.PL that uses Module::Build
use List::MoreUtils qw(any uniq);
use Moose;
use Moose::Autobox;
-with 'Dist::Zilla::Role::BuildRunner';
-with 'Dist::Zilla::Role::PrereqSource';
-with 'Dist::Zilla::Role::InstallTool';
-with 'Dist::Zilla::Role::TextTemplate';
-with 'Dist::Zilla::Role::TestRunner';
+with qw(
+ Dist::Zilla::Role::BuildPL
+ Dist::Zilla::Role::PrereqSource
+ Dist::Zilla::Role::TextTemplate
+);
use Dist::Zilla::File::InMemory;
use List::MoreUtils qw(any uniq);
@@ -147,26 +147,6 @@ has __module_build_args => (
isa => 'HashRef',
);
-sub build {
- my $self = shift;
-
- system($^X => 'Build.PL') and die "error with Build.PL\n";
- system($^X, 'Build') and die "error running $^X Build\n";
-
- return;
-}
-
-sub test {
- my ($self, $target) = @_;
-
- $self->build;
- system($^X, 'Build', 'test',
- ( $self->zilla->logger->get_debug ? 'verbose=1' : () ),
- ) and die "error running $^X Build test\n";
-
- return;
-}
-
__PACKAGE__->meta->make_immutable;
no Moose;
1;
@@ -180,7 +160,7 @@ Dist::Zilla::Plugin::ModuleBuild - build a Build.PL that uses Module::Build
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ModuleShareDirs;
BEGIN {
- $Dist::Zilla::Plugin::ModuleShareDirs::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ModuleShareDirs::VERSION = '4.200006';
}
# ABSTRACT: install a directory's contents as module-based "ShareDir" content
use Moose;
@@ -66,7 +66,7 @@ Dist::Zilla::Plugin::ModuleShareDirs - install a directory's contents as module-
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,13 +1,11 @@
package Dist::Zilla::Plugin::NextRelease;
BEGIN {
- $Dist::Zilla::Plugin::NextRelease::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::NextRelease::VERSION = '4.200006';
}
# ABSTRACT: update the next release number in your changelog
use Moose;
-with 'Dist::Zilla::Role::FileMunger';
-with 'Dist::Zilla::Role::TextTemplate';
-with 'Dist::Zilla::Role::AfterRelease';
+with qw/Dist::Zilla::Role::FileMunger Dist::Zilla::Role::TextTemplate Dist::Zilla::Role::AfterRelease/;
use DateTime 0.44; # CLDR fixes
use String::Formatter 0.100680 stringf => {
@@ -124,7 +122,7 @@ Dist::Zilla::Plugin::NextRelease - update the next release number in your change
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PkgDist;
BEGIN {
- $Dist::Zilla::Plugin::PkgDist::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PkgDist::VERSION = '4.200006';
}
# ABSTRACT: add a $DIST to your packages
use Moose;
@@ -106,7 +106,7 @@ Dist::Zilla::Plugin::PkgDist - add a $DIST to your packages
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PkgVersion;
BEGIN {
- $Dist::Zilla::Plugin::PkgVersion::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PkgVersion::VERSION = '4.200006';
}
# ABSTRACT: add a $VERSION to your packages
use Moose;
@@ -113,7 +113,7 @@ Dist::Zilla::Plugin::PkgVersion - add a $VERSION to your packages
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PodCoverageTests;
BEGIN {
- $Dist::Zilla::Plugin::PodCoverageTests::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PodCoverageTests::VERSION = '4.200006';
}
# ABSTRACT: a release test for Pod coverage
use Moose;
@@ -21,7 +21,7 @@ Dist::Zilla::Plugin::PodCoverageTests - a release test for Pod coverage
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PodSyntaxTests;
BEGIN {
- $Dist::Zilla::Plugin::PodSyntaxTests::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PodSyntaxTests::VERSION = '4.200006';
}
# ABSTRACT: a release test for Pod syntax
use Moose;
@@ -21,7 +21,7 @@ Dist::Zilla::Plugin::PodSyntaxTests - a release test for Pod syntax
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PodVersion;
BEGIN {
- $Dist::Zilla::Plugin::PodVersion::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PodVersion::VERSION = '4.200006';
}
# ABSTRACT: add a VERSION head1 to each Perl document
use Moose;
@@ -57,7 +57,7 @@ sub munge_pod {
}
$self->log([
- "couldn't find '=head1 VERSION' in %s, not adding '=head1 VERSION'",
+ "couldn't find '=head1 NAME' in %s, not adding '=head1 VERSION'",
$file->name,
]);
}
@@ -75,7 +75,7 @@ Dist::Zilla::Plugin::PodVersion - add a VERSION head1 to each Perl document
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::Prereq;
BEGIN {
- $Dist::Zilla::Plugin::Prereq::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::Prereq::VERSION = '4.200006';
}
# ABSTRACT: (DEPRECATED) the old name of the Prereqs plugin
use Moose;
@@ -27,7 +27,7 @@ Dist::Zilla::Plugin::Prereq - (DEPRECATED) the old name of the Prereqs plugin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::Prereqs;
BEGIN {
- $Dist::Zilla::Plugin::Prereqs::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::Prereqs::VERSION = '4.200006';
}
# ABSTRACT: list simple prerequisites
use Moose;
@@ -13,9 +13,10 @@ sub __from_name {
# such as C<configure>, C<build>, C<test> and C<runtime>. Values are
# relationship such as C<requires>, C<prefers>, or C<recommends>. The
+ # phase component is optional and will default to Runtime.
my ($phase, $type) = $name =~ /\A
- (Build|Test|Runtime|Configure|Develop)
+ (Build|Test|Runtime|Configure|Develop)?
(Requires|Recommends|Suggests|Conflicts)
\z/x;
@@ -121,7 +122,7 @@ Dist::Zilla::Plugin::Prereqs - list simple prerequisites
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -201,6 +202,9 @@ conflicts
=back
+If the phase is omitted, it will default to I<runtime>; thus, specifying
+"Prereqs / Recommends" in your dist.ini is equivalent to I<RuntimeRecommends>.
+
Not all of these phases are useful for all tools, especially tools that only
understand version 1.x CPAN::Meta files.
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PruneCruft;
BEGIN {
- $Dist::Zilla::Plugin::PruneCruft::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PruneCruft::VERSION = '4.200006';
}
# ABSTRACT: prune stuff that you probably don't mean to include
use Moose;
@@ -77,7 +77,7 @@ Dist::Zilla::Plugin::PruneCruft - prune stuff that you probably don't mean to in
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::PruneFiles;
BEGIN {
- $Dist::Zilla::Plugin::PruneFiles::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::PruneFiles::VERSION = '4.200006';
}
# ABSTRACT: prune arbirary files from the dist
use Moose;
@@ -60,7 +60,7 @@ Dist::Zilla::Plugin::PruneFiles - prune arbirary files from the dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -75,7 +75,8 @@ bunch of files, and you only want a subset of them.
In your F<dist.ini>:
[PruneFiles]
- filenames = xt/release/pod-coverage.t ; pod coverage tests are for jerks
+ filename = xt/release/pod-coverage.t ; pod coverage tests are for jerks
+ filename = todo-list.txt ; keep our secret plans to ourselves
match = ^test_data/*
match = ^test.cvs$
@@ -1,12 +1,11 @@
package Dist::Zilla::Plugin::Readme;
BEGIN {
- $Dist::Zilla::Plugin::Readme::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::Readme::VERSION = '4.200006';
}
# ABSTRACT: build a README file
use Moose;
use Moose::Autobox;
-with 'Dist::Zilla::Role::FileGatherer';
-with 'Dist::Zilla::Role::TextTemplate';
+with qw/Dist::Zilla::Role::FileGatherer Dist::Zilla::Role::TextTemplate/;
sub gather_files {
@@ -52,7 +51,7 @@ Dist::Zilla::Plugin::Readme - build a README file
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::RemovePrereqs;
BEGIN {
- $Dist::Zilla::Plugin::RemovePrereqs::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::RemovePrereqs::VERSION = '4.200006';
}
# ABSTRACT: a plugin to remove gathered prereqs
use Moose;
@@ -67,7 +67,7 @@ Dist::Zilla::Plugin::RemovePrereqs - a plugin to remove gathered prereqs
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::ShareDir;
BEGIN {
- $Dist::Zilla::Plugin::ShareDir::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::ShareDir::VERSION = '4.200006';
}
# ABSTRACT: install a directory's contents as "ShareDir" content
use Moose;
@@ -43,7 +43,7 @@ Dist::Zilla::Plugin::ShareDir - install a directory's contents as "ShareDir" con
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::TemplateModule;
BEGIN {
- $Dist::Zilla::Plugin::TemplateModule::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::TemplateModule::VERSION = '4.200006';
}
# ABSTRACT: a simple module-from-template plugin
use Moose;
@@ -64,7 +64,7 @@ Dist::Zilla::Plugin::TemplateModule - a simple module-from-template plugin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::TestRelease;
BEGIN {
- $Dist::Zilla::Plugin::TestRelease::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::TestRelease::VERSION = '4.200006';
}
use Moose;
with 'Dist::Zilla::Role::BeforeRelease';
@@ -35,6 +35,7 @@ sub before_release {
my $target = $tmpdir->subdir( $self->zilla->built_in->dir_list(-1) );
local $ENV{RELEASE_TESTING} = 1;
+ local $ENV{AUTHOR_TESTING} = 1;
$self->zilla->run_tests_in($target);
$self->log("all's well; removing $tmpdir");
@@ -54,7 +55,7 @@ Dist::Zilla::Plugin::TestRelease - extract archive and run tests before releasin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -64,6 +65,9 @@ tests. If the tests fail, the release is aborted and the temporary directory
is left in place. If the tests pass, the temporary directory is cleaned up and
the release process continues.
+This will set the RELEASE_TESTING and AUTHOR_TESTING env vars while running the
+testsuite.
+
=head1 CREDITS
This plugin was originally contributed by Christopher J. Madsen.
@@ -1,6 +1,6 @@
package Dist::Zilla::Plugin::UploadToCPAN;
BEGIN {
- $Dist::Zilla::Plugin::UploadToCPAN::VERSION = '4.200004';
+ $Dist::Zilla::Plugin::UploadToCPAN::VERSION = '4.200006';
}
# ABSTRACT: upload the dist to CPAN
use Moose;
@@ -149,7 +149,7 @@ Dist::Zilla::Plugin::UploadToCPAN - upload the dist to CPAN
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::PluginBundle::Basic;
BEGIN {
- $Dist::Zilla::PluginBundle::Basic::VERSION = '4.200004';
+ $Dist::Zilla::PluginBundle::Basic::VERSION = '4.200006';
}
# ABSTRACT: the basic plugins to maintain and release CPAN dists
use Moose;
@@ -42,7 +42,7 @@ Dist::Zilla::PluginBundle::Basic - the basic plugins to maintain and release CPA
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::PluginBundle::Classic;
BEGIN {
- $Dist::Zilla::PluginBundle::Classic::VERSION = '4.200004';
+ $Dist::Zilla::PluginBundle::Classic::VERSION = '4.200006';
}
# ABSTRACT: the classic (old) default configuration for Dist::Zilla
use Moose;
@@ -45,7 +45,7 @@ Dist::Zilla::PluginBundle::Classic - the classic (old) default configuration for
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::PluginBundle::FakeClassic;
BEGIN {
- $Dist::Zilla::PluginBundle::FakeClassic::VERSION = '4.200004';
+ $Dist::Zilla::PluginBundle::FakeClassic::VERSION = '4.200006';
}
# ABSTRACT: build something more or less like a "classic" CPAN dist
use Moose;
@@ -39,7 +39,7 @@ Dist::Zilla::PluginBundle::FakeClassic - build something more or less like a "cl
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::PluginBundle::Filter;
BEGIN {
- $Dist::Zilla::PluginBundle::Filter::VERSION = '4.200004';
+ $Dist::Zilla::PluginBundle::Filter::VERSION = '4.200006';
}
# ABSTRACT: use another bundle, with some plugins removed
use Moose;
@@ -66,7 +66,7 @@ Dist::Zilla::PluginBundle::Filter - use another bundle, with some plugins remove
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Prereqs;
BEGIN {
- $Dist::Zilla::Prereqs::VERSION = '4.200004';
+ $Dist::Zilla::Prereqs::VERSION = '4.200006';
}
# ABSTRACT: the prerequisites of a Dist::Zilla distribution
use Moose;
@@ -58,7 +58,7 @@ Dist::Zilla::Prereqs - the prerequisites of a Dist::Zilla distribution
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::AfterBuild;
BEGIN {
- $Dist::Zilla::Role::AfterBuild::VERSION = '4.200004';
+ $Dist::Zilla::Role::AfterBuild::VERSION = '4.200006';
}
# ABSTRACT: something that runs after building is mostly complete
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::AfterBuild - something that runs after building is mostly com
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::AfterMint;
BEGIN {
- $Dist::Zilla::Role::AfterMint::VERSION = '4.200004';
+ $Dist::Zilla::Role::AfterMint::VERSION = '4.200006';
}
# ABSTRACT: something that runs after minting is mostly complete
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::AfterMint - something that runs after minting is mostly compl
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::AfterRelease;
BEGIN {
- $Dist::Zilla::Role::AfterRelease::VERSION = '4.200004';
+ $Dist::Zilla::Role::AfterRelease::VERSION = '4.200006';
}
# ABSTRACT: something that runs after release is mostly complete
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::AfterRelease - something that runs after release is mostly co
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::BeforeArchive;
BEGIN {
- $Dist::Zilla::Role::BeforeArchive::VERSION = '4.200004';
+ $Dist::Zilla::Role::BeforeArchive::VERSION = '4.200006';
}
# ABSTRACT: something that runs before the archive file is built
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::BeforeArchive - something that runs before the archive file i
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::BeforeBuild;
BEGIN {
- $Dist::Zilla::Role::BeforeBuild::VERSION = '4.200004';
+ $Dist::Zilla::Role::BeforeBuild::VERSION = '4.200006';
}
# ABSTRACT: something that runs before building really begins
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::BeforeBuild - something that runs before building really begi
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::BeforeMint;
BEGIN {
- $Dist::Zilla::Role::BeforeMint::VERSION = '4.200004';
+ $Dist::Zilla::Role::BeforeMint::VERSION = '4.200006';
}
# ABSTRACT: something that runs before minting really begins
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::BeforeMint - something that runs before minting really begins
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::BeforeRelease;
BEGIN {
- $Dist::Zilla::Role::BeforeRelease::VERSION = '4.200004';
+ $Dist::Zilla::Role::BeforeRelease::VERSION = '4.200006';
}
# ABSTRACT: something that runs before release really begins
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::BeforeRelease - something that runs before release really beg
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -0,0 +1,66 @@
+package Dist::Zilla::Role::BuildPL;
+BEGIN {
+ $Dist::Zilla::Role::BuildPL::VERSION = '4.200006';
+}
+
+use Moose::Role;
+
+with qw(
+ Dist::Zilla::Role::InstallTool
+ Dist::Zilla::Role::BuildRunner
+ Dist::Zilla::Role::TestRunner
+);
+
+sub build {
+ my $self = shift;
+
+ system $^X, 'Build.PL' and die "error with Build.PL\n";
+ system $^X, 'Build' and die "error running $^X Build\n";
+
+ return;
+}
+
+sub test {
+ my ($self, $target) = @_;
+
+ $self->build;
+ my @testing = $self->zilla->logger->get_debug ? '--verbose' : ();
+ system $^X, 'Build', 'test', @testing and die "error running $^X Build test\n";
+
+ return;
+}
+
+1;
+
+# ABSTRACT: Common ground for Build.PL based builders
+
+
+
+__END__
+=pod
+
+=head1 NAME
+
+Dist::Zilla::Role::BuildPL - Common ground for Build.PL based builders
+
+=head1 VERSION
+
+version 4.200006
+
+=head1 DESCRIPTION
+
+This role is a helper for Build.PL based installers. It implements the L<Dist::Zilla::Plugin::BuildRunner> and L<Dist::Zilla::Plugin::TestRunner> roles, and requires you to implement the L<Dist::Zilla::Plugin::PrereqSource> and L<Dist::Zilla::Plugin::InstallTool> roles yourself.
+
+=head1 AUTHOR
+
+Ricardo SIGNES <rjbs@cpan.org>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is copyright (c) 2011 by Ricardo SIGNES.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::BuildRunner;
BEGIN {
- $Dist::Zilla::Role::BuildRunner::VERSION = '4.200004';
+ $Dist::Zilla::Role::BuildRunner::VERSION = '4.200006';
}
# ABSTRACT: something used as a delegating agent during 'dzil run'
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::BuildRunner - something used as a delegating agent during 'dz
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Chrome;
BEGIN {
- $Dist::Zilla::Role::Chrome::VERSION = '4.200004';
+ $Dist::Zilla::Role::Chrome::VERSION = '4.200006';
}
# ABSTRACT: something that provides a user interface for Dist::Zilla
use Moose::Role;
@@ -23,7 +23,7 @@ Dist::Zilla::Role::Chrome - something that provides a user interface for Dist::Z
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::ConfigDumper;
BEGIN {
- $Dist::Zilla::Role::ConfigDumper::VERSION = '4.200004';
+ $Dist::Zilla::Role::ConfigDumper::VERSION = '4.200006';
}
# ABSTRACT: something that can dump its (public, simplified) configuraiton
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::ConfigDumper - something that can dump its (public, simplifie
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::ExecFiles;
BEGIN {
- $Dist::Zilla::Role::ExecFiles::VERSION = '4.200004';
+ $Dist::Zilla::Role::ExecFiles::VERSION = '4.200006';
}
# ABSTRACT: something that finds files to install as executables
use Moose::Role;
@@ -26,7 +26,7 @@ Dist::Zilla::Role::ExecFiles - something that finds files to install as executab
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::File;
BEGIN {
- $Dist::Zilla::Role::File::VERSION = '4.200004';
+ $Dist::Zilla::Role::File::VERSION = '4.200006';
}
# ABSTRACT: something that can act like a file
use Moose::Role;
@@ -48,7 +48,7 @@ Dist::Zilla::Role::File - something that can act like a file
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::FileFinder;
BEGIN {
- $Dist::Zilla::Role::FileFinder::VERSION = '4.200004';
+ $Dist::Zilla::Role::FileFinder::VERSION = '4.200006';
}
# ABSTRACT: something that finds files within the distribution
use Moose::Role;
@@ -23,7 +23,7 @@ Dist::Zilla::Role::FileFinder - something that finds files within the distributi
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,20 +1,24 @@
package Dist::Zilla::Role::FileFinderUser;
BEGIN {
- $Dist::Zilla::Role::FileFinderUser::VERSION = '4.200004';
+ $Dist::Zilla::Role::FileFinderUser::VERSION = '4.200006';
}
# ABSTRACT: something that uses FileFinder plugins
use MooseX::Role::Parameterized;
+
+
parameter finder_arg_names => (
isa => 'ArrayRef',
default => sub { [ 'finder' ] },
);
+
parameter default_finders => (
isa => 'ArrayRef',
required => 1,
);
+
parameter method => (
isa => 'Str',
default => 'found_files',
@@ -78,7 +82,81 @@ Dist::Zilla::Role::FileFinderUser - something that uses FileFinder plugins
=head1 VERSION
-version 4.200004
+version 4.200006
+
+=head1 DESCRIPTION
+
+This role enables you to search for files in the dist. This makes it easy to find specific
+files and have the code factored out to common methods.
+
+Here's an example of a finder: ( taken from AutoPrereqs )
+
+ with 'Dist::Zilla::Role::FileFinderUser' => {
+ default_finders => [ ':InstallModules', ':ExecFiles' ],
+ };
+
+Then you use it in your code like this:
+
+ foreach my $file ( $self->found_files ) {
+ # $file is an object! Look at L<Dist::Zilla::Role::File>
+ }
+
+=head1 ATTRIBUTES
+
+=head2 finder_arg_names
+
+Define the name of the attribute which will hold this finder. Be sure to specify different names
+if you have multiple finders!
+
+This is an ArrayRef.
+
+Default: [ qw( finder ) ]
+
+=head2 default_finders
+
+This attribute is an arrayref of plugin names for the default plugins the
+consuming plugin will use as finder.s
+
+Example: C<< [ qw( :InstallModules :ExecFiles ) ] >>
+
+The default finders are:
+
+=over 4
+
+=item :InstallModules
+
+Searches your lib/ directory for pm/pod files
+
+=item :IncModules
+
+Searches your inc/ directory for pm files
+
+=item :MainModule
+
+Finds the C<main_module> of your dist
+
+=item :TestFiles
+
+Searches your t/ directory and lists the files in it.
+
+=item :ExecFiles
+
+Searches your distribution for executable files. Hint: Use the
+L<Dist::Zilla::Plugin::ExecDir> plugin to mark those files as executables.
+
+=item :ShareFiles
+
+Searches your ShareDir directory and lists the files in it.
+Hint: Use the L<Dist::Zilla::Plugin::ShareDir> plugin to setup the sharedir.
+
+=back
+
+=head2 method
+
+This will be the name of the subroutine installed in your package for this
+finder. Be sure to specify different names if you have multiple finders!
+
+Default: found_files
=head1 AUTHOR
@@ -1,11 +1,10 @@
package Dist::Zilla::Role::FileGatherer;
BEGIN {
- $Dist::Zilla::Role::FileGatherer::VERSION = '4.200004';
+ $Dist::Zilla::Role::FileGatherer::VERSION = '4.200006';
}
# ABSTRACT: something that gathers files into the distribution
use Moose::Role;
-with 'Dist::Zilla::Role::Plugin';
-with 'Dist::Zilla::Role::FileInjector';
+with qw/Dist::Zilla::Role::Plugin Dist::Zilla::Role::FileInjector/;
use Moose::Autobox;
@@ -24,7 +23,7 @@ Dist::Zilla::Role::FileGatherer - something that gathers files into the distribu
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::FileInjector;
BEGIN {
- $Dist::Zilla::Role::FileInjector::VERSION = '4.200004';
+ $Dist::Zilla::Role::FileInjector::VERSION = '4.200006';
}
# ABSTRACT: something that can add files to the distribution
use Moose::Role;
@@ -33,7 +33,7 @@ Dist::Zilla::Role::FileInjector - something that can add files to the distributi
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::FileMunger;
BEGIN {
- $Dist::Zilla::Role::FileMunger::VERSION = '4.200004';
+ $Dist::Zilla::Role::FileMunger::VERSION = '4.200006';
}
# ABSTRACT: something that alters a file's destination or content
use Moose::Role;
@@ -30,7 +30,7 @@ Dist::Zilla::Role::FileMunger - something that alters a file's destination or co
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::FilePruner;
BEGIN {
- $Dist::Zilla::Role::FilePruner::VERSION = '4.200004';
+ $Dist::Zilla::Role::FilePruner::VERSION = '4.200006';
}
# ABSTRACT: something that removes found files from the distribution
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::FilePruner - something that removes found files from the dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::InstallTool;
BEGIN {
- $Dist::Zilla::Role::InstallTool::VERSION = '4.200004';
+ $Dist::Zilla::Role::InstallTool::VERSION = '4.200006';
}
# ABSTRACT: something that creates an install program for a dist
use Moose::Role;
@@ -26,7 +26,7 @@ Dist::Zilla::Role::InstallTool - something that creates an install program for a
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::MetaProvider;
BEGIN {
- $Dist::Zilla::Role::MetaProvider::VERSION = '4.200004';
+ $Dist::Zilla::Role::MetaProvider::VERSION = '4.200006';
}
# ABSTRACT: something that provides metadata (for META.yml/json)
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::MetaProvider - something that provides metadata (for META.yml
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::MintingProfile::ShareDir;
BEGIN {
- $Dist::Zilla::Role::MintingProfile::ShareDir::VERSION = '4.200004';
+ $Dist::Zilla::Role::MintingProfile::ShareDir::VERSION = '4.200006';
}
# ABSTRACT: something that keeps its minting profile in a sharedir
use Moose::Role;
@@ -33,7 +33,7 @@ Dist::Zilla::Role::MintingProfile::ShareDir - something that keeps its minting p
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::MintingProfile;
BEGIN {
- $Dist::Zilla::Role::MintingProfile::VERSION = '4.200004';
+ $Dist::Zilla::Role::MintingProfile::VERSION = '4.200006';
}
# ABSTRACT: something that can find a minting profile dir
use Moose::Role;
@@ -23,7 +23,7 @@ Dist::Zilla::Role::MintingProfile - something that can find a minting profile di
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::ModuleMaker;
BEGIN {
- $Dist::Zilla::Role::ModuleMaker::VERSION = '4.200004';
+ $Dist::Zilla::Role::ModuleMaker::VERSION = '4.200006';
}
# ABSTRACT: something that injects module files into the dist
use Moose::Role;
@@ -24,7 +24,7 @@ Dist::Zilla::Role::ModuleMaker - something that injects module files into the di
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Plugin;
BEGIN {
- $Dist::Zilla::Role::Plugin::VERSION = '4.200004';
+ $Dist::Zilla::Role::Plugin::VERSION = '4.200006';
}
# ABSTRACT: something that gets plugged in to Dist::Zilla
use Moose::Role;
@@ -81,7 +81,7 @@ Dist::Zilla::Role::Plugin - something that gets plugged in to Dist::Zilla
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::PluginBundle::Easy;
BEGIN {
- $Dist::Zilla::Role::PluginBundle::Easy::VERSION = '4.200004';
+ $Dist::Zilla::Role::PluginBundle::Easy::VERSION = '4.200006';
}
# ABSTRACT: something that bundles a bunch of plugins easily
# This plugin was originally contributed by Christopher J. Madsen
@@ -140,7 +140,7 @@ Dist::Zilla::Role::PluginBundle::Easy - something that bundles a bunch of plugin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::PluginBundle;
BEGIN {
- $Dist::Zilla::Role::PluginBundle::VERSION = '4.200004';
+ $Dist::Zilla::Role::PluginBundle::VERSION = '4.200006';
}
# ABSTRACT: something that bundles a bunch of plugins
use Moose::Role;
@@ -26,7 +26,7 @@ Dist::Zilla::Role::PluginBundle - something that bundles a bunch of plugins
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::PrereqSource;
BEGIN {
- $Dist::Zilla::Role::PrereqSource::VERSION = '4.200004';
+ $Dist::Zilla::Role::PrereqSource::VERSION = '4.200006';
}
# ABSTRACT: something that registers prerequisites
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::PrereqSource - something that registers prerequisites
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Releaser;
BEGIN {
- $Dist::Zilla::Role::Releaser::VERSION = '4.200004';
+ $Dist::Zilla::Role::Releaser::VERSION = '4.200006';
}
# ABSTRACT: something that makes a release of the dist
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::Releaser - something that makes a release of the dist
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::ShareDir;
BEGIN {
- $Dist::Zilla::Role::ShareDir::VERSION = '4.200004';
+ $Dist::Zilla::Role::ShareDir::VERSION = '4.200006';
}
# ABSTRACT: something that picks a directory to install as shared files
use Moose::Role;
@@ -23,7 +23,7 @@ Dist::Zilla::Role::ShareDir - something that picks a directory to install as sha
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Stash::Authors;
BEGIN {
- $Dist::Zilla::Role::Stash::Authors::VERSION = '4.200004';
+ $Dist::Zilla::Role::Stash::Authors::VERSION = '4.200006';
}
use Moose::Role;
with 'Dist::Zilla::Role::Stash';
@@ -20,7 +20,7 @@ Dist::Zilla::Role::Stash::Authors - a stash that provides a list of author strin
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Stash::Login;
BEGIN {
- $Dist::Zilla::Role::Stash::Login::VERSION = '4.200004';
+ $Dist::Zilla::Role::Stash::Login::VERSION = '4.200006';
}
use Moose::Role;
with 'Dist::Zilla::Role::Stash';
@@ -21,7 +21,7 @@ Dist::Zilla::Role::Stash::Login - a stash with username/password credentials
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::Stash;
BEGIN {
- $Dist::Zilla::Role::Stash::VERSION = '4.200004';
+ $Dist::Zilla::Role::Stash::VERSION = '4.200006';
}
# ABSTRACT: something that stores options or data for later reference
use Moose::Role;
@@ -34,7 +34,7 @@ Dist::Zilla::Role::Stash - something that stores options or data for later refer
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::TestRunner;
BEGIN {
- $Dist::Zilla::Role::TestRunner::VERSION = '4.200004';
+ $Dist::Zilla::Role::TestRunner::VERSION = '4.200006';
}
# ABSTRACT: something used as a delegating agent to 'dzil test'
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::TestRunner - something used as a delegating agent to 'dzil te
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::TextTemplate;
BEGIN {
- $Dist::Zilla::Role::TextTemplate::VERSION = '4.200004';
+ $Dist::Zilla::Role::TextTemplate::VERSION = '4.200006';
}
# ABSTRACT: something that renders a Text::Template template string
use Moose::Role;
@@ -56,7 +56,7 @@ Dist::Zilla::Role::TextTemplate - something that renders a Text::Template templa
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Role::VersionProvider;
BEGIN {
- $Dist::Zilla::Role::VersionProvider::VERSION = '4.200004';
+ $Dist::Zilla::Role::VersionProvider::VERSION = '4.200006';
}
# ABSTRACT: something that provides a version number for the dist
use Moose::Role;
@@ -21,7 +21,7 @@ Dist::Zilla::Role::VersionProvider - something that provides a version number fo
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -1,6 +1,6 @@
package Dist::Zilla::Stash::PAUSE;
BEGIN {
- $Dist::Zilla::Stash::PAUSE::VERSION = '4.200004';
+ $Dist::Zilla::Stash::PAUSE::VERSION = '4.200006';
}
use Moose;
# ABSTRACT: a stash of your PAUSE credentials
@@ -34,7 +34,7 @@ Dist::Zilla::Stash::PAUSE - a stash of your PAUSE credentials
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -1,6 +1,6 @@
package Dist::Zilla::Stash::Rights;
BEGIN {
- $Dist::Zilla::Stash::Rights::VERSION = '4.200004';
+ $Dist::Zilla::Stash::Rights::VERSION = '4.200006';
}
use Moose;
with 'Dist::Zilla::Role::Stash';
@@ -34,7 +34,7 @@ Dist::Zilla::Stash::Rights - a stash of your default licensing terms
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Stash::User;
BEGIN {
- $Dist::Zilla::Stash::User::VERSION = '4.200004';
+ $Dist::Zilla::Stash::User::VERSION = '4.200006';
}
use Moose;
# ABSTRACT: a stash of user name and email
@@ -34,7 +34,7 @@ Dist::Zilla::Stash::User - a stash of user name and email
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -1,6 +1,6 @@
package Dist::Zilla::Tester;
BEGIN {
- $Dist::Zilla::Tester::VERSION = '4.200004';
+ $Dist::Zilla::Tester::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::Dist::Builder';
@@ -34,7 +34,7 @@ sub minter { 'Dist::Zilla::Tester::_Minter' }
{
package Dist::Zilla::Tester::_Role;
BEGIN {
- $Dist::Zilla::Tester::_Role::VERSION = '4.200004';
+ $Dist::Zilla::Tester::_Role::VERSION = '4.200006';
}
use Moose::Role;
@@ -80,7 +80,7 @@ BEGIN {
{
package Dist::Zilla::Tester::_Builder;
BEGIN {
- $Dist::Zilla::Tester::_Builder::VERSION = '4.200004';
+ $Dist::Zilla::Tester::_Builder::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::Dist::Builder';
@@ -176,7 +176,7 @@ BEGIN {
{
package Dist::Zilla::Tester::_Minter;
BEGIN {
- $Dist::Zilla::Tester::_Minter::VERSION = '4.200004';
+ $Dist::Zilla::Tester::_Minter::VERSION = '4.200006';
}
use Moose;
extends 'Dist::Zilla::Dist::Minter';
@@ -265,7 +265,7 @@ Dist::Zilla::Tester - a testing-enabling stand-in for Dist::Zilla
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 AUTHOR
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::Tutorial;
BEGIN {
- $Dist::Zilla::Tutorial::VERSION = '4.200004';
+ $Dist::Zilla::Tutorial::VERSION = '4.200006';
}
# ABSTRACT: how to use this "Dist::Zilla" thing
use Carp ();
@@ -18,7 +18,7 @@ Dist::Zilla::Tutorial - how to use this "Dist::Zilla" thing
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 SYNOPSIS
@@ -1,6 +1,6 @@
package Dist::Zilla::Types;
BEGIN {
- $Dist::Zilla::Types::VERSION = '4.200004';
+ $Dist::Zilla::Types::VERSION = '4.200006';
}
# ABSTRACT: dzil-specific type library
@@ -27,7 +27,7 @@ Dist::Zilla::Types - dzil-specific type library
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 OVERVIEW
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Dist::Zilla::Util;
BEGIN {
- $Dist::Zilla::Util::VERSION = '4.200004';
+ $Dist::Zilla::Util::VERSION = '4.200006';
}
# ABSTRACT: random snippets of code that Dist::Zilla wants
@@ -92,7 +92,7 @@ Dist::Zilla::Util - random snippets of code that Dist::Zilla wants
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 METHODS
@@ -1,6 +1,6 @@
package Dist::Zilla;
BEGIN {
- $Dist::Zilla::VERSION = '4.200004';
+ $Dist::Zilla::VERSION = '4.200006';
}
# ABSTRACT: distribution builder; installer not included!
use Moose 0.92; # role composition fixes
@@ -145,7 +145,7 @@ has main_module => (
->head;
}
- if ( not $file ){
+ if (not $file) {
my @errorlines;
push @errorlines, "Unable to find main_module in the distribution";
@@ -525,7 +525,7 @@ Dist::Zilla - distribution builder; installer not included!
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -2,7 +2,7 @@ use strict;
use warnings;
package Test::DZil;
BEGIN {
- $Test::DZil::VERSION = '4.200004';
+ $Test::DZil::VERSION = '4.200006';
}
# ABSTRACT: tools for testing Dist::Zilla plugins
@@ -133,7 +133,7 @@ Test::DZil - tools for testing Dist::Zilla plugins
=head1 VERSION
-version 4.200004
+version 4.200006
=head1 DESCRIPTION
@@ -71,7 +71,7 @@ for my $yes (qw(y yes)) {
);
}
-my $prompt = "*** Preparing to upload DZT-Sample-0.001.tar.gz to CPAN ***\n"
+my $prompt = "*** Preparing to release DZT-Sample-0.001.tar.gz with FakeRelease ***\n"
. "Do you want to continue the release process?";
for my $no (qw(n no)) {
@@ -0,0 +1,103 @@
+use strict;
+use warnings;
+use Test::More 0.88;
+
+use lib 't/lib';
+
+use Test::DZil;
+
+my $tzil = Builder->from_config(
+ { dist_root => 'corpus/dist/DZT' },
+ {
+ add_files => {
+ 'source/dist.ini' => simple_ini(
+ [ GatherDir => ],
+ [ GatherDir => MyINC => {
+ root => '../corpus/dist/DZT_Inc',
+ prefix => 'inc',
+ } ],
+ [ GatherDir => MyBIN => {
+ root => '../corpus/dist/DZT_Bin',
+ prefix => 'bin',
+ } ],
+ [ ExecDir => ],
+ 'Manifest',
+ ),
+ },
+ also_copy => { 'corpus/dist/DZT_Inc' => 'corpus/dist/DZT_Inc',
+ 'corpus/dist/DZT_Bin' => 'corpus/dist/DZT_Bin'
+ },
+ },
+);
+
+$tzil->build;
+
+my @files = map {; $_->name } @{ $tzil->files };
+
+is_filelist(
+ [ @files ],
+ [ qw(
+ dist.ini lib/DZT/Sample.pm t/basic.t
+ MANIFEST
+ inc/Foo.pm inc/Foo/Bar.pm
+ bin/test.pl
+ ) ],
+ "GatherDir gathers all files in the source dir",
+);
+
+my $manifest = $tzil->slurp_file('build/MANIFEST');
+my %in_manifest = map {; chomp; $_ => 1 } grep {length} split /\n/, $manifest;
+
+my $count = grep { $in_manifest{$_} } @files;
+ok($count == @files, "all files found were in manifest");
+ok(keys(%in_manifest) == @files, "all files in manifest were on disk");
+
+# Test our finders
+my $files = $tzil->find_files(':InstallModules');
+is_filelist(
+ [ map {; $_->name } @$files ],
+ [ qw(
+ lib/DZT/Sample.pm
+ ) ],
+ "InstallModules finds all modules",
+);
+
+$files = $tzil->find_files(':IncModules');
+is_filelist(
+ [ map {; $_->name } @$files ],
+ [ qw(
+ inc/Foo.pm inc/Foo/Bar.pm
+ ) ],
+ "IncModules finds all modules",
+);
+
+$files = $tzil->find_files(':TestFiles');
+is_filelist(
+ [ map {; $_->name } @$files ],
+ [ qw(
+ t/basic.t
+ ) ],
+ "TestFiles finds all files",
+);
+
+$files = $tzil->find_files(':ExecFiles');
+is_filelist(
+ [ map {; $_->name } @$files ],
+ [ qw(
+ bin/test.pl
+ ) ],
+ "ExecFiles finds all files",
+);
+
+# XXX I don't use sharedir, how do I configure it? --apocal
+# disabled for now because DZ::Tester doesn't allow sharedir finder to work...
+# Can't locate object method "zilla" via package "Dist::Zilla::Tester::_Builder" at blib/lib/Dist/Zilla/Dist/Builder.pm line 114.
+#$files = $tzil->find_files(':ShareFiles');
+#is_filelist(
+# [ map {; $_->name } @$files ],
+# [ ],
+# "ShareFiles finds all files",
+#);
+
+done_testing;
+
@@ -42,7 +42,7 @@ use Test::DZil;
'Test::Deet' => '7',
},
CONFIGURE_REQUIRES => {
- 'ExtUtils::MakeMaker' => '6.31'
+ 'ExtUtils::MakeMaker' => '6.30'
},
);
@@ -19,6 +19,7 @@ use Test::DZil;
[ Prereqs => RuntimeRequires => { A => 2, B => 3 } ],
[ Prereqs => DevelopSuggests => { C => 4 } ],
[ Prereqs => TestConflicts => { C => 5, D => 6 } ],
+ [ Prereqs => Recommends => { E => 7 } ],
),
},
},
@@ -34,7 +35,10 @@ use Test::DZil;
$meta->{prereqs},
{
develop => { suggests => { C => 4 } },
- runtime => { requires => { A => 2, B => 3 } },
+ runtime => {
+ requires => { A => 2, B => 3 },
+ recommends => { E => 7 },
+ },
test => { conflicts => { C => 5, D => 6 } },
},
"prereqs merged",